<!DOCTYPE HTML>
<html xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<link rel="stylesheet" href="../css/currency/bootstrap.css" />
	<link href="../css/H-ui.min.css" rel="stylesheet" type="text/css" />
	<link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css" />
	<link href="../css/style.css" rel="stylesheet" type="text/css" />
	<link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="../css/recipe.css" />
	<title>平台数据统计</title>
	</head>

	<body>
	<nav class="breadcrumb" style="margin-bottom:0px"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 数据报表 <span class="c-gray en">&gt;</span>平台数据统计
		<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
    <div class="pd-20" id="platformInfo">
        <div class="text-c" id="platformInfoList">
			<form search-form>
				<span class="select-box" style="width:150px; float: left">
                    <select id="platformType" class="select" v-model="condition.platformType">
						<option value="2">美数平台</option>
                        <option value="3">百度平台</option>
                        <option value="4">点屏平台</option>
						<option value="5">易售平台</option>
						<option value="6">钼媒平台</option>
                    </select>
                </span>
				<div id="selectBtnEnter" class="btn btn-primary" style="float: left" v-on:click="getList('search')">查询</div>
				<span>
                        <a class="btn btn-primary radius addFormula" style="float: right" id="export" v-on:click="exportPlatformInfo()">导出数据</a>&nbsp;&nbsp;&nbsp;&nbsp;
                </span>
				<div class="cl pd-5 bg-1 bk-gray mt-20">
	            <span class="l">
	            </span>
				<span class="r" v-cloak>
					<span >
						广告总数：{{sum}} ；
					</span>
					<span >
						成功总数：{{success}} ；
					</span>
					<span >
						失败总数：{{sum-success}} ；
					</span>
					<span >
						回调成功率：{{backPercent}}
	            	</span>
				</span>
				</div>
			</form>
			<form>
				<table class="table table-border table-bordered table-bg">
					<thead>
					<tr class="text-c">
						<!--TODO 生成表头-->
						<th nowrap="nowrap" width='12.5%'>时间段</th>
						<th nowrap="nowrap" width='12.5%'>总数量</th>
						<th nowrap="nowrap" width='12.5%'>成功数量</th>
						<th nowrap="nowrap" width='12.5%'>失败数量</th>
					</tr>
					</thead>
					<tbody v-cloak >
					<tr class="text-c" v-for="(item,index) in pageInfo.list">
						<td nowrap="nowrap">{{item.dateTime}}</td>
						<td nowrap="nowrap">{{item.number}}</td>
						<td nowrap="nowrap">{{item.successNum}}</td>
						<td nowrap="nowrap">{{item.failNum}}</td>
					</tr>
					</tbody>
				</table>
			</form>

			<div class="pageBox" v-cloak id="pageBox">
				<div class="pageInfo">显示 <span id="startRow">{{pageInfo.startRow}}</span> 到 <span id="endRow">{{pageInfo.endRow}}条</span>&nbsp;&nbsp;&nbsp;&nbsp;{{pageInfo.pages}}页&nbsp;&nbsp;&nbsp;&nbsp;共
					<span id="total">{{pageInfo.total}}</span> 条
					<select v-model="selectedPageSize" v-on:change="getList('changePageSize')">
						<option value="5">5</option>
						<option value="10">10</option>
						<option value="15">15</option>
						<option value="20">20</option>
						<option value="50">50</option>
					</select>
				</div>
				<ul class="pagination" id="pagination"></ul>
			</div>
			<div class="tips" id="noData" align="center" style="display: none">
				无数据
			</div>
		</div>
	</div>
	</body>

</html>
<script type="text/javascript" src="../js/common/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../lib/layer/1.9.3/layer.js" ></script>
<script type="text/javascript" src="../lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="../lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="../lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="../js/common/H-ui.js"></script>
<script type="text/javascript" src="../js/common/H-ui.admin.js"></script>
<script type="text/javascript" src="../js/utils/utils.js"></script>
<script type="text/javascript" src="../js/currency/vue.js"></script>
<script type="text/javascript" src="../js/currency/vue-resource.min.js"></script>
<script type="text/javascript" src="../js/currency/base.js"></script>
<script type="text/javascript" src="../js/currency/jqPaginator.js"></script>
<script type="text/javascript" src="../js/platformInfo.js"></script>

